var num = prompt("请输入一个数字");
var num1 = num%2==0 ? "偶数":"奇数";
console.log(num1);